import request from '@/utils/request'

// 获取秒杀活动列表
export function list(data) {
  return request({
    url: '/adminapi/activity/seckill/list',
    method: 'post',
    data
  })
}
// 删除秒杀活动
export function del(data) {
  return request({
    url: '/adminapi/activity/seckill/del',
    method: 'post',
    data
  })
}
// 获取秒杀活动商品列表
export function getGoodsList(data) {
  return request({
    url: '/adminapi/activity/getGoodsList',
    method: 'post',
    data
  })
}
// 添加秒杀活动
export function add(data) {
  return request({
    url: '/adminapi/activity/seckill/add',
    method: 'post',
    data
  })
}
// 获取添加秒杀活动详情
export function detail(data) {
  return request({
    url: '/adminapi/activity/seckill/detail',
    method: 'post',
    data
  })
}
// 修改秒杀活动状态
export function changeStatus(data) {
  return request({
    url: '/adminapi/activity/changeStatus',
    method: 'post',
    data
  })
}
// 编辑秒杀活动状态
export function edit(data) {
  return request({
    url: '/adminapi/activity/seckill/edit',
    method: 'post',
    data
  })
}
// 添加编辑抽奖活动
export function SaveAward(data) {
  return request({
    url: '/adminapi/Award/SaveAward',
    method: 'post',
    data
  })
}
// 获取抽奖活动列表
export function getAwardList(data) {
  return request({
    url: '/adminapi/Award/getAwardList',
    method: 'post',
    data
  })
}
// 获取抽奖活动详情
export function getAwardInfo(data) {
  return request({
    url: '/adminapi/Award/getAwardInfo',
    method: 'post',
    data
  })
}
// 删除抽奖活动
export function delAward(data) {
  return request({
    url: '/adminapi/Award/delAward',
    method: 'post',
    data
  })
}
// 修改抽奖活动状态
export function SaveAwardStatus(data) {
  return request({
    url: '/adminapi/Award/SaveAwardStatus',
    method: 'post',
    data
  })
}


// 添加抽奖活动模版
export function SaveAwardTemplate(data) {
  return request({
    url: '/adminapi/AwardTemplate/SaveAwardTemplate',
    method: 'post',
    data
  })
}
// 获取抽奖活动列表
export function getAwardTemplateList(data) {
  return request({
    url: '/adminapi/AwardTemplate/getAwardTemplateList',
    method: 'post',
    data
  })
}
// 获取抽奖活动详情
export function getAwardTemplateInfo(data) {
  return request({
    url: '/adminapi/AwardTemplate/getAwardTemplateInfo',
    method: 'post',
    data
  })
}
// 删除抽奖活动
export function delAwardTemplate(data) {
  return request({
    url: '/adminapi/AwardTemplate/delAwardTemplate',
    method: 'post',
    data
  })
}
// 更新抽奖模板状态
export function SaveAwardTemplateStatus(data) {
  return request({
    url: '/adminapi/AwardTemplate/SaveAwardTemplateStatus',
    method: 'post',
    data
  })
}


// 更新或者添加抽奖商品
export function SaveAwardGoods(data) {
  return request({
    url: '/adminapi/AwardGoods/SaveAwardGoods',
    method: 'post',
    data
  })
}
// 获取抽奖商品列表
export function getAwardGoodsList(data) {
  return request({
    url: '/adminapi/AwardGoods/getAwardGoodsList',
    method: 'post',
    data
  })
}
// 删除抽奖商品
export function delAwardGoods(data) {
  return request({
    url: '/adminapi/AwardGoods/delAwardGoods',
    method: 'post',
    data
  })
}

// 添加或者更新抽奖规则
export function SaveAwardRule(data) {
  return request({
    url: '/adminapi/AwardRule/SaveAwardRule',
    method: 'post',
    data
  })
}
// 获取抽奖规则列表
export function getAwardRuleList(data) {
  return request({
    url: '/adminapi/AwardRule/getAwardRuleList',
    method: 'post',
    data
  })
}
// 获取规则详情
export function getAwardRuleInfo(data) {
  return request({
    url: '/adminapi/AwardRule/getAwardRuleInfo',
    method: 'post',
    data
  })
}
// 更新抽奖规则状态
export function SaveAwardRuleStatus(data) {
  return request({
    url: '/adminapi/AwardRule/SaveAwardRuleStatus',
    method: 'post',
    data
  })
}

// 删除规则
export function delAwardRuleStatus(data) {
  return request({
    url: '/adminapi/AwardRule/delAwardRuleStatus',
    method: 'post',
    data
  })
}

// 添加或者更新签到
export function SaveSign(data) {
  return request({
    url: '/adminapi/v2/sign/save',
    method: 'post',
    data
  })
}

// 记录
export function signLog(data) {
  return request({
    url: '/adminapi/v2/sign/signLog',
    method: 'post',
    data
  })
}
// 获取签到列表
export function getSignList(data) {
  return request({
    url: '/adminapi/Sign/getSignList',
    method: 'post',
    data
  })
}
// 获取签到列表2.0
export function getSignListtwo(data) {
  return request({
    url: '/adminapi/v2/sign/getList',
    method: 'post',
    data
  })
}

// 获取签到详情
export function getSignInfo(data) {
  return request({
    url: '/adminapi/v2/sign/getInfo',
    method: 'post',
    data
  })
}
// 删除签到
export function delSign(data) {
  return request({
    url: '/adminapi/v2/sign/delInfo',
    method: 'post',
    data
  })
}
// 更新签到状态
export function SaveSignStatus(data) {
  return request({
    url: '/adminapi/v2/sign/updateStatus',
    method: 'post',
    data
  })
}

// 添加签到规则
export function SaveSignRule(data) {
  return request({
    url: '/adminapi/Sign/SaveSignRule',
    method: 'post',
    data
  })
}
// 获取签到规则详情
export function getSignRuleInfo(data) {
  return request({
    url: '/adminapi/Sign/getSignRuleInfo',
    method: 'post',
    data
  })
}
// 获取签到规则列表
export function getSignRuleList(data) {
  return request({
    url: '/adminapi/Sign/getSignRuleList',
    method: 'post',
    data
  })
}
// 删除签到规则
export function delSignRule(data) {
  return request({
    url: '/adminapi/Sign/delSignRule',
    method: 'post',
    data
  })
}

// 获取抽奖任务列表
export function getAwardTaskList(data) {
  return request({
    url: '/adminapi/Award/getAwardTaskList',
    method: 'post',
    data
  })
}
// 更新或者添加抽奖任务
export function SaveAwardTask(data) {
  return request({
    url: '/adminapi/Award/SaveAwardTask',
    method: 'post',
    data
  })
}
// 删除任务
export function delAwardTask(data) {
  return request({
    url: '/adminapi/Award/delAwardTask',
    method: 'post',
    data
  })
}

// 获取抽奖任务列表(现用)
export function NewSaveAward(data) {
  return request({
    url: '/adminapi/Award/NewSaveAward',
    method: 'post',
    data
  })
}

// 获取拉新活动列表
export function getInviteActivityList(data) {
  return request({
    url: '/adminapi/activity/invite/activityList',
    method: 'post',
    data
  })
}
// 获取拉新活动详情
export function getInviteActivityInfo(data) {
  return request({
    url: '/adminapi/activity/invite/activityInfo',
    method: 'post',
    data
  })
}
// 编辑保存拉新活动
export function saveInviteActivity(data) {
  return request({
    url: '/adminapi/activity/invite/activityEdit',
    method: 'post',
    data
  })
}
// 删除拉新活动
export function delInviteActivity(data) {
  return request({
    url: '/adminapi/activity/invite/activityDelete',
    method: 'post',
    data
  })
}
// 拉新活动状态变更
export function editActivityStatus(data) {
  return request({
    url: '/adminapi/activity/invite/activityStatus',
    method: 'post',
    data
  })
}

// 新人礼编辑修改
export function SaveNewPeopleGif(data) {
  return request({
    url: '/adminapi/Activity/SaveNewPeopleGifNew',
    method: 'post',
    data
  })
}
// 新人礼详情
export function getNewPeopleGifInfo(data) {
  return request({
    url: '/adminapi/Activity/getNewPeopleGifInfo',
    method: 'post',
    data
  })
}
// 新人礼列表
export function getNewPeopleGifList(data) {
  return request({
    url: '/adminapi/Activity/getNewPeopleGifList',
    method: 'post',
    data
  })
}
// 删除新人礼
export function delNewPeopleGif(data) {
  return request({
    url: '/adminapi/Activity/delNewPeopleGif',
    method: 'post',
    data
  })
}
// 变更新人礼状态
export function SaveNewPeopleGifStatus(data) {
  return request({
    url: '/adminapi/Activity/SaveNewPeopleGifStatus',
    method: 'post',
    data
  })
}


